{extend name="AdminPublic:public"}
{block name="admin"}
  <div class="container">
                    
  <div class="container">
                        
   <div class="mws-panel-body no-padding"> 
    <form class="mws-form" action="/adminsuser/saverole" method="post"> 
     <div class="mws-form-inline"> 
      <div class="mws-form-row"> 
       <label class="mws-form-label">角色信息</label> 
       <div class="mws-form-item clearfix"> 
        <h4>当前用户:{$user['name']}的角色信息</h4> 
        <ul class="mws-form-list inline">
          {foreach name="role" item="v"}
           <li><input type="checkbox" value="{$v['id']}" name="rid[]" {if condition="in_array($v['id'],$rids)"}checked{/if}> {$v['name']}<label></label></li>
           {/foreach}
        </ul> 
       </div> 
      </div> 
     </div> 
     <div class="mws-button-row">
     <input type="hidden" name="uid" value="{$user['id']}">
      <input value="分配角色" class="btn btn-danger" type="submit"> 
      <input value="Reset" class="btn " type="reset"> 
     </div> 
    </form> 
   </div>

                               
                    <!-- Panels End -->
                </div>

                               
                    <!-- Panels End -->
                </div>
{/block}